import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;




import com.baili.util.StringUtil;





public class test {
	
	public static void main(String[] args) throws ParseException {
		System.out.println(StringUtil.formatDates(new Date()));
		
//		String str = "[{PHONE=18310654429, PASSWD=25f9e794323b453885f5181f1b624d0b}]";
//		Map mp = new HashMap();
//		mp.put("aa", "11");
//		System.out.println(mp.get("aa"));
		
//		System.out.println(JSONObject.fromObject(str));
		
//		String sJson = "[{'gwcxxid':'1','spsl':'2'},{'gwcxxid':'1','spsl':'2'},{'gwcxxid':'3','spsl':'4'}]";
//		JSONArray jsonArray = new JSONArray();
//		int iSize = jsonArray.length();
//		System.out.println("Size:" + iSize);
//		for (int i = 0; i < iSize; i++) {
//		JSONObject jsonObj = jsonArray.getJSONObject(i);
//		System.out.println("[" + i + "]gwcxxid=" + jsonObj.get("gwcxxid"));
//		System.out.println("[" + i + "]spsl=" + jsonObj.get("spsl"));
//		System.out.println();
//		String ss ="{"result":{"code":"1001","message":"不一致"},"error_code":0,"reason":"Succes"}";
		
//		JSONObject jsonArr = JSONObject.fromObject(str);
//        System.out.println(jsonArr);
//        List lst = new ArrayList();;
////        System.out.println(lst);
		
		        int i = 10;
	
		        int a = 2;
		        int b = 1;
				for(int x =0 ; x <10;x++){
					if(i>a){
						
					}
					
					
				}

		
        
        
        
	}
	
	
	
	
	public static Long sendPostInfo(Map<String, String> sParaTemp, String gateway)  
            throws Exception {  
//		HttpRequest request = new HttpRequest(HttpResultType.BYTES);
//		request.setMethod(HttpRequest.METHOD_POST);
//		request.setCharset("utf-8");
//		NameValuePair[] nvs = addPubInfo(userInfo);
		String result = null;
		Long pub_id = null;
		/*request.setUrl(UserConstants.USER_ID_ADD_URL);
		request.setParameters(nvs);
		HttpResponse response = HttpProtocolHandler.getInstance().execute(request);
		try {
			result = response.getStringResult();
			valueLogger.info("addUser2IValue result is:"+result);
			if(result!=null){
				pub_id = parsePubIdByJson2(result);
			}
		} catch (UnsupportedEncodingException e) {
			valueLogger.error(" add user 2 ivalue error :"+e);
		}*/
		return pub_id;


}  
}
